package com.virgo.demo.market.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.virgo.common.entity.ListDataVo;
import com.virgo.demo.market.domain.AdvDo;
import com.virgo.demo.market.domain.bo.AdvBo;
import com.virgo.demo.market.domain.vo.AdvShowVo;
import com.virgo.demo.market.domain.vo.AdvVo;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

public interface AdvService extends IService<AdvDo> {

	/**
	 * 编辑广告
	 * @param advBo AdvBo
	 */
	void saveAdv(AdvBo advBo);

	/**
	 * 删除广告
	 * @param ids String
	 */
	void deleteAdv(String ids);

	/**
	 * 广告列表
	 * @param request HttpServletRequest
	 * @return ListDataVo<AdvVo>
	 */
	ListDataVo<AdvVo> findList(HttpServletRequest request);

	/**
	 * 查询广告
	 * @param positionCode String
	 * @return List<AdvShowVo>
	 */
	List<AdvShowVo> advList(String positionCode);
}